-- GENERATED SPELL FOR [Tirion Fordring] --


function spell0_1855(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_1855', 616, 1)
end

function spell1_1855(pUnit, Event) --@Exorcism,n/a--
pUnit:FullCastSpellOnTarget(17149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1855', 641, 1)
end

function spell2_1855(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1855', 6297, 1)
end

function spell3_1855(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(15493,pUnit)
pUnit:RegisterEvent('Sorts_1855', 2500, 1)
end

function Sorts_1855(pUnit, Event)
local choix_sorts_1855 = math.random(0, 3)
if choix_sorts_1855 == 0 then
pUnit:RegisterEvent('spell0_1855', 1, 1)
end
if choix_sorts_1855 == 1 then
pUnit:RegisterEvent('spell1_1855', 1, 1)
end
if choix_sorts_1855 == 2 then
pUnit:RegisterEvent('spell2_1855', 1, 1)
end
if choix_sorts_1855 == 3 then
pUnit:RegisterEvent('spell3_1855', 1, 1)
end
end

function mob1855_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1855', math.random(1500, 3000), 1)
end

function mob1855_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1855_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1855_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1855, 1, 'mob1855_Action')
RegisterUnitEvent(1855, 2, 'mob1855_Leave')
RegisterUnitEvent(1855, 3, 'mob1855_Kill')
RegisterUnitEvent(1855, 4, 'mob1855_Die')
